import Axios from './api'

// export function getShopList() {
//   return Axios({
//     url: '/api/getWYLuser',
//     method: 'GET',
//   })
// }

export function getNameList() {
  return Axios({
    url: '/api/getWYLuser',
    method: 'GET',
  })
}

// 积分商城——商品
export function getGoodsList() {
  return Axios({
    url: '/goodsList',
    method: 'GET',
  })
}
// 删除请求
export function delListApi(params) {
  console.log(params)
  return Axios({
    method: 'delete',
    url: `/delList/${params.id}`,
    params: params,
  })
}
// 编辑确定请求
export function editListApi(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: '/editListApi',
    data: params,
  })
}
// 添加请求
export function addListApi(params) {
  console.log(params)
  return Axios({
    method: 'POST',
    url: '/addList',
    data: params,
  })
}

// 积分商城——模态框
// 获取幻灯片
export function getBannerList() {
  return Axios({
    url: '/banners',
    method: 'GET',
  })
}
// 添加幻灯片
export function addBannerList(params) {
  console.log(params)
  return Axios({
    method: 'POST',
    url: '/addBannerList',
    data: params,
  })
}
// 幻灯片编辑请求
export function editBannerList(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: '/editBannerList',
    data: params,
  })
}
// 删除幻灯片
export function delBannerList(params) {
  console.log(params)
  return Axios({
    method: 'DELETE',
    url: `/delBannerList/${params.id}`,
    params: params,
  })
}
//查找单条banner
export function getBannerId(id) {
  return Axios({
    url: `/getBanner/${id}`,
    method: 'GET',
  })
}

//  积分商城——分类
// 获取数据
export function getCateList() {
  return Axios({
    url: '/getCate',
    method: 'GET',
  })
}
// 添加分类
export function addCateList(params) {
  console.log(params)
  return Axios({
    method: 'POST',
    url: '/addCate',
    data: params,
  })
}
// 删除分类
export function delCateList(params) {
  console.log(params)
  return Axios({
    method: 'DELETE',
    url: `/delCate/${params.id}`,
    params: params,
  })
}
// 查找单条数据
export function findCateList(id) {
  return Axios({
    url: `/findCate/${id}`,
    method: 'GET',
  })
}
// 编辑分类
export function editCateList(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: '/editCate',
    data: params,
  })
}

// 积分商城——状态管理
// 获取数据
export function getStatusApi() {
  return Axios({
    url: '/goodStatus',
    method: 'GET',
  })
}
// 获取数据——详情
export function getStatusDetailApi() {
  return Axios({
    url: '/getStatusDetail',
    method: 'GET',
  })
}
// 修改详情
// 编辑分类
export function editStatusList(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: '/editStatus',
    data: params,
  })
}

// 权限列表
// 获取数据
export function getXstoreAdmin() {
  return Axios({
    method: 'GET',
    url: '/getXstoreAdmin',
  })
}
// 添加数据
export function getXaddstoreAdmin(params) {
  console.log(params)
  return Axios({
    method: 'POST',
    url: '/getXaddstoreAdmin',
    data: params,
  })
}
// 删除分类
export function getXdeletestoreAdmin(params) {
  console.log(params)
  return Axios({
    method: 'DELETE',
    url: `/getXdeletestoreAdmin/${params.id}`,
    params: params,
  })
}
// 编辑分类
export function getXmodifystoreAdmin(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: `/getXmodifystoreAdmin/${params.id}`,
    data: params,
  })
}

// 权限管理——管理员管理
// 获取
export function getXAdminAdmin(params) {
  console.log(params)
  return Axios({
    method: 'GET',
    url: '/getXAdminAdmin',
  })
}
// 添加
export function getXaddAdminAdmin(params) {
  console.log(params)
  return Axios({
    method: 'POST',
    url: '/getXaddAdminAdmin',
    data: params,
  })
}

// 删除
export function getXdeleteAdminAdmin(data) {
  // console.log(data.id);
  return Axios({
    url: `/getXdeleteAdminAdmin/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
// 修改
export function getXmodifyAdminAdmin(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: `/getXmodifyAdminAdmin/${params.id}`,
    data: params,
  })
}

// 权限管理——提现审核
//提现管理
//获取数据
export function getXwithdrawalAudit() {
  return Axios({
    url: '/getXwithdrawalAudit',
    method: 'GET',
  })
}
//修改数据
export function getXmodifywithdrawalAudit(data) {
  // console.log(data);
  return Axios({
    url: `/getXmodifywithdrawalAudit/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//角色管理
//获取数据
export function getXroleAdmin() {
  return Axios({
    url: '/getXroleAdmin',
    method: 'GET',
  })
}
//添加数据
export function getXaddroleAdmin(params) {
  // console.log(params)
  return Axios({
    url: '/getXaddroleAdmin',
    method: 'POST',
    data: params,
  })
}
//删除数据
export function getXdeleteroleAdmin(data) {
  // console.log(data.id);
  return Axios({
    url: `/getXdeleteroleAdmin/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
//权限管理获取数据
export function getXjurisdiction() {
  return Axios({
    url: '/getXjurisdiction',
    method: 'GET',
  })
}

// 评价列表——获取数据
export function getEvalList() {
  return Axios({
    url: '/evaluate',
    method: 'GET',
  })
}
// 评价列表——删除请求
export function evaldelList(params) {
  console.log(params)
  return Axios({
    method: 'DELETE',

    url: `/evaldelList/${params.id}`,
    params: params,
  })
}

// 评价列表——查看详情——获取数据
export function getLookUpList() {
  return Axios({
    url: '/getLookUpList',
    method: 'GET',
  })
}

// 评价列表——审核——获取单条数据
export function findVerifyList(id) {
  return Axios({
    url: `/findVerifyList/${id}`,
    method: 'GET',
  })
}

// 评价列表——审核
export function getXmodifyVerify(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: `/getXmodifyVerify/${params.id}`,
    data: params,
  })
}
// 评价列表——审核
export function getXResponse(params) {
  console.log(params)
  return Axios({
    method: 'PUT',
    url: `/getXResponse/${params.id}`,
    data: params,
  })
}

// 评价列表——虚拟评价
export function getVirtualList() {
  return Axios({
    url: '/getVirtualList',
    method: 'GET',
  })
}

export function getXaddEvalList(params) {
  console.log(params)
  return Axios({
    url: '/getXaddEvalList',
    method: 'POST',
    data: params,
  })
}
export function getXdeleteEvalList(data) {
  // console.log(data.id);
  return Axios({
    url: `/getXdeleteEvalList/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
// 信息管理——意见反馈——获取数据
export function getXmessageList() {
  return Axios({
    url: '/getXmessageList',
    method: 'GET',
  })
}
// 信息管理——意见反馈——删除
export function messageXdelList(params) {
  console.log(params)
  return Axios({
    method: 'DELETE',
    url: `/messageXdelList/${params.id}`,
    params: params,
  })
}

// 信息管理——合作申请——获取数据
export function getXcooperList() {
  return Axios({
    url: '/getXcooperList',
    method: 'GET',
  })
}
// 信息管理——合作申请——删除
export function cooperXdelList(params) {
  console.log(params)
  return Axios({
    method: 'DELETE',
    url: `/cooperXdelList/${params.id}`,
    params: params,
  })
}
// 信息管理——用药问答——获取数据
export function getXmedicineList() {
  return Axios({
    url: '/getXmedicineList',
    method: 'GET',
  })
}
// 信息管理——用药问答——删除数据
export function medicineXdelList(params) {
  console.log(params)
  return Axios({
    method: 'DELETE',
    url: `/medicineXdelList/${params.id}`,
    params: params,
  })
}
// 信息管理——用药问答——添加回答
export function getXmedicineAnswer(id) {
  return Axios({
    url: `/getXmedicineAnswer/${id}`,
    method: 'GET',
    params: params,
  })
}
//登录请求
export function getShopLists(params) {
  return Axios({
    url: '/api/user/login',
    method: 'POST',
    data: params,
  })
}
//主页数据请求
export function getCarousel(data) {
  return Axios({
    url: '/api/Carousel',
    method: 'GET',
    data: data,
  })
}
//删出轮播图列表指定数据
export function remolCarousel(data) {
  return Axios({
    url: `/api/carousel/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
//添加轮播图图片
export function addMing(data) {
  return Axios({
    url: `/api/carousels`,
    method: 'POST',
    data: data,
  })
}

//获取导航列表数据
export function getnavicme(data) {
  return Axios({
    url: '/api/navigation',
    method: 'GET',
    data: data,
  })
}
//获取导航列表数据
export function getnavicmes(data) {
  return Axios({
    url: `/api/navigations/${data.lin}`,
    method: 'GET',
    data: data,
  })
}

//更新图标数据
export function navicon(data) {
  return Axios({
    url: `/api/navicon/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//更新
export function lwjgetShopList_Put(data) {
  return Axios({
    url: `/api/lwjputshoplist/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//获取分类数据
export function getupmydata(data) {
  return Axios({
    url: '/api/upmydata',
    method: 'GET',
    data: data,
  })
}

//更新分类数据
export function upmydatas(data) {
  return Axios({
    url: `/api/upmydatas/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

//获取公告数据
export function getNotice(data) {
  return Axios({
    url: '/api/Notice',
    method: 'GET',
    data: data,
  })
}

//更新公告数据
export function uPnavicons(data) {
  return Axios({
    url: `/api/Notices/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

//获取品牌管理数据
export function getjadminstrion(data) {
  return Axios({
    url: '/api/jadminstrion',
    method: 'GET',
    data: data,
  })
}

//新增品牌
export function adminMing(data) {
  return Axios({
    url: `/api/jadminstrions`,
    method: 'POST',
    data: data,
  })
}

//更新品牌数据
export function uPjadmin(data) {
  return Axios({
    url: `/api/jadminstriona/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//删除品牌列表指定数据
export function remolejadmin(data) {
  return Axios({
    url: `/api/jadminstrionw/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}

//商品列表添加
export function lwjaddlist(data) {
  console.log(data)
  return Axios({
    url: '/api/addlist',
    method: 'POST',
    data: data,
  })
}
// 商品列表获取
export function lwjgetShopList() {
  return Axios({
    url: '/api/lwjgetShopList',
    method: 'GET',
  })
}
//首页第一个跳转获取页面的数据
export function lwjindex_one() {
  return Axios({
    url: '/api/lwjget',
    method: 'GET',
  })
}
// 商品列表数据删除
export function lwjDelete(data) {
  console.log(data)
  return Axios({
    url: `/api/lwjgetShopList/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
//删除首页第一个跳转页面的数据
export function lwjindex_onedel(data) {
  console.log(data)
  return Axios({
    url: `/api/lwjindexdel/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
//添加商品列表数据
export function lwjindex_onecreate(data) {
  console.log(data)
  return Axios({
    url: '/api/lwjindexcrete',
    method: 'POST',
    data: data,
  })
}
// 修改获取到的商品列表数据
export function lwjputshoplist(data) {
  return Axios({
    url: `/api/lwjputshoplist/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//获取商品列表的数据(单条)
export function lwjgetShopList_get(data) {
  return Axios({
    url: `/api/lwjupdata/${data.id}`,
    method: 'GET',
    data: data,
  })
}
//获取商品分组的数据
export function lwjcommodiygroup(data) {
  return Axios({
    url: '/api/commodiygroup/Get',
    method: 'GET',
    data: data,
  })
}
//删除商品分组的数据
export function lwjcommodiygroup_del(data) {
  console.log(data)
  return Axios({
    url: `/api/commodiygroup/del/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
//获取商品组的数据
export function lwjgroup_get(data) {
  return Axios({
    url: '/api/group_get',
    method: 'GET',
    data: data,
  })
}
//修改商品组的数据
export function lwjupdatagroup_put(data) {
  return Axios({
    url: `/api/updatagroup_put/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//添加商品组
export function commodiygroup_create(data) {
  console.log(data)
  return Axios({
    url: '/api/commodiygroup_create',
    method: 'POST',
    data: data,
  })
}
//选中项的商品组查询id
export function lwjgroup_updata(data) {
  console.log(data)
  return Axios({
    url: `/api/commodiygroup_updata/${data.id}`,
    method: 'GET',
    data: data,
  })
}
//商品组里面的修改
export function commodiygroup_put(data) {
  console.log(data)
  return Axios({
    url: `/api/commodiygroup_put/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//修改上架状态
export function commodiygroup_put_one(data) {
  console.log(data)
  return Axios({
    url: `/api/commodiygroup_put_one/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//获取品牌的数据
export function brand_get() {
  return Axios({
    url: '/api/brand_get',
    method: 'GET',
  })
}
// 删除品牌数据
export function brand_del(data) {
  console.log(data)
  return Axios({
    url: `/api/brand/del/${data.id}`,
    method: 'DELETE',
    data: data,
  })
}
//品牌数据添加
export function brand_create(data) {
  console.log(data)
  return Axios({
    url: '/api/brand_create',
    method: 'POST',
    data: data,
  })
}
// 获取品牌数据
export function brand_updata(data) {
  console.log(data)
  return Axios({
    url: `/api/brand_gitid/${data.id}`,
    method: 'GET',
  })
}
//品牌修改数据
export function brand_put(data) {
  console.log(data)
  return Axios({
    url: `/api/brand_put/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
// 多列删除
export function fetchMultipleDeletes(url, id) {
  return Axios({
    url: url + '/' + id,
    method: 'DELETE',
  })
}

export function getRecharge() {
  return Axios({
    url: '/api/getwhjRecharge',
    method: 'GET',
  })
}
export function getDrug() {
  return Axios({
    url: '/api/getwhjDrug',
    method: 'GET',
  })
}
export function upDrug(data) {
  // 更新
  return Axios({
    url: `/api/upgetwhjDrug/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

export function getDis() {
  return Axios({
    url: '/api/getwhjdis',
    method: 'GET',
  })
}

export function addDis(data) {
  return Axios({
    url: '/api/addwhjdis',
    method: 'post',
    data: data,
  })
}
export function getPre() {
  return Axios({
    url: '/api/getpre',
    method: 'GET',
  })
}

export function addPre(data) {
  return Axios({
    url: '/api/addpre',
    method: 'post',
    data: data,
  })
}
export function upPer(data) {
  // 更新
  return Axios({
    url: `/api/upre/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

export function delPre(data) {
  console.log(data)
  return Axios({
    url: `/api/delpre/${data.id}`,
    method: 'DELETE',
  })
}

export function getmember() {
  return Axios({
    url: '/api/getwhjmember',
    method: 'GET',
  })
}

export function searchMsg(data) {
  return Axios({
    url: `/api/sewhjmember/${data}`,
    method: 'GET',
    data: data,
  })
}

export function getbiao() {
  return Axios({
    url: '/api/getbiao',
    method: 'GET',
  })
}

export function addbiao(data) {
  return Axios({
    url: '/api/addbiao',
    method: 'post',
    data: data,
  })
}
export function upbiao(data) {
  // 更新
  return Axios({
    url: `/api/upwhjbiao/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

export function delbiao(data) {
  console.log(data)
  return Axios({
    url: `/api/delbiao/${data.id}`,
    method: 'DELETE',
  })
}

export function getgrade() {
  return Axios({
    url: '/api/getgrade',
    method: 'GET',
  })
}
export function addgrade(data) {
  return Axios({
    url: '/api/addgrade',
    method: 'post',
    data: data,
  })
}

export function searchgrade(data) {
  return Axios({
    url: `/api/sehgrade/${data}`,
    method: 'GET',
    data: data,
  })
}

export function upgrade(data) {
  // 更新
  return Axios({
    url: `/api/upgrade/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

export function getgrouping() {
  return Axios({
    url: '/api/getgrouping',
    method: 'GET',
  })
}

export function addgrouping(data) {
  return Axios({
    url: '/api/addgrouping',
    method: 'post',
    data: data,
  })
}

export function delgrouping(data) {
  console.log(data)
  return Axios({
    url: `/api/delgrouping/${data.id}`,
    method: 'DELETE',
  })
}

export function getconference() {
  return Axios({
    url: '/api/getconference',
    method: 'GET',
  })
}

export function addconference(data) {
  return Axios({
    url: '/api/addconference',
    method: 'POST',
    data,
  })
}

export function delconference(data) {
  console.log(data)
  return Axios({
    url: `/api/delconference/${data.id}`,
    method: 'DELETE',
  })
}

export function getshangpin() {
  return Axios({
    url: '/api/getshangpin',
    method: 'GET',
  })
}

export function delshangpin(data) {
  console.log(data)
  return Axios({
    url: `/api/delshangpin/${data.id}`,
    method: 'DELETE',
  })
}

export function upconference(data) {
  // 更新
  return Axios({
    url: `/api/upconference/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

export function getlunbo() {
  return Axios({
    url: '/api/getlunbo',
    method: 'GET',
  })
}

export function dellunbo(data) {
  console.log(data)
  return Axios({
    url: `/api/dellunbo/${data.id}`,
    method: 'DELETE',
  })
}

//获取会场列表数据
export function zht_HdVenue() {
  return Axios({
    url: '/api/hdvenue',
    method: 'GET',
  })
}

//添加会场名称
export function zht_addHdVenue(data) {
  return Axios({
    url: '/api/addvenue',
    method: 'post',
    data: data,
  })
}
//删除会场
export function zht_delHdVenue(id) {
  return Axios({
    url: `/api/delvenue/${id}`,
    method: 'DELETE',
  })
}

//搜索指定会场
export function zht_SearchVenue(id) {
  return Axios({
    url: `/api/searchvenve/${id}`,
    method: 'GET',
  })
}

//修改会场
export function zht_putHdVenue(data) {
  return Axios({
    url: `/api/putvenue/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

//获取活动商品页面数据
export function zht_getHdGoods() {
  return Axios({
    url: '/api/getgoods',
    method: 'GET',
  })
}

//获取分类列表
export function zht_getGoodsClass() {
  return Axios({
    url: '/api/getGoodsclass',
    method: 'get',
  })
}
//添加分类
export function zht_addGoodsClass(data) {
  return Axios({
    url: '/api/addGoodsClass',
    method: 'POST',
    data: data,
  })
}
//删除分类
export function zht_delGoodsClass(id) {
  return Axios({
    url: `/api/delGoodsClass/${id}`,
    method: 'DELETE',
  })
}

//查找单条分类
export function zht_searchGoodsClass(id) {
  return Axios({
    url: `/api/searchGoodsClass/${id}`,
    method: 'GET',
  })
}

//更新分类
export function zgt_putGoodeClass(data) {
  return Axios({
    url: `/api/putGoodsCasss/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

//添加商品
export function zht_addGoods(data) {
  return Axios({
    url: '/api/addHdGoods',
    method: 'post',
    data: data,
  })
}
//删除商品
export function zht_delGoods(id) {
  return Axios({
    url: `/api/delGoods/${id}`,
    method: 'DELETE',
  })
}
//查看单条商品
export function zht_searchGoods(id) {
  return Axios({
    url: `/api/searchGoods/${id}`,
    method: 'GET',
  })
}
//更新商品
export function zht_putGoods(data) {
  return Axios({
    url: `/api/putgoods/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

//获取轮播数据表
export function zht_getBannerList() {
  return Axios({
    url: '/api/getBannerList',
    method: 'GET',
  })
}

//添加轮播图
export function zht_addBanner(data) {
  return Axios({
    url: '/api/addBannerList',
    method: 'POST',
    data: data,
  })
}

//删除指定轮播图
export function zht_delBanner(id) {
  return Axios({
    url: `/api/delBanner/${id}`,
    method: 'DELETE',
  })
}
//查找指定 轮播
export function zht_searchBanner(id) {
  return Axios({
    url: `/api/searchBanner/${id}`,
    method: 'GET',
  })
}
//更新指定轮播
export function zht_putBanner(data) {
  return Axios({
    url: `/api/putBanner/${data.id}`,
    method: 'put',
    data: data,
  })
}

//获取拼团所有相关数据
export function zht_getPtGoodAll() {
  return Axios({
    url: '/api/getPtGoodsAll',
    method: 'GET',
  })
}
//添加拼团商品
export function zht_AddPtGood(data) {
  return Axios({
    url: '/api/addPtGoodsAll',
    method: 'post',
    data: data,
  })
}
//获取单条拼团商品
export function zht_searchPtGood(id) {
  return Axios({
    url: `/api/searchPtGood/${id}`,
    method: 'get',
  })
}

//更新指定拼团数据
export function zht_putPtGood(data) {
  console.log(data)
  return Axios({
    url: `/api/putPtGood/${data.id}`,
    method: 'put',
    data: data,
  })
}
//删除指定批团商品
export function zht_delPtGood(id) {
  return Axios({
    url: `/api/delPtGoods/${id}`,
    method: 'DELETE',
  })
}

//获取拼团分类数据
export function zht_gePtClass() {
  return Axios({
    url: '/api/getPtClassList',
    method: 'GET',
  })
}

//添加拼团分类
export function zht_addPtClass(data) {
  // console.log(data);
  return Axios({
    url: '/api/addPtClasa',
    method: 'POST',
    data: data,
  })
}

//删除分类
export function zht_delPtClass(id) {
  return Axios({
    url: `/api/PtClass/${id}`,
    method: 'DELETE',
  })
}
//查找指定分类
export function zht_searchClass(id) {
  return Axios({
    url: `/api/searchPtClass/${id}`,
    method: 'GET',
  })
}

//修改指定分类
export function zht_putPtClass(data) {
  return Axios({
    url: `/api/putPtClass/${data.id}`,
    method: 'put',
    data: data,
  })
}

//获取拼团轮播图数据
export function zht_getPtBanner() {
  return Axios({
    url: '/api/getPtBanner',
    method: 'get',
  })
}

//添加轮播图
export function zht_addPtBanner(data) {
  return Axios({
    url: '/api/addPtBanner',
    method: 'POST',
    data: data,
  })
}
//删除指定轮播图
export function zht_delPtBanner(id) {
  return Axios({
    url: `/api/delPtBanner/${id}`,
    method: 'DELETE',
  })
}
//更新指定轮播图
export function zht_putPtBanner(data) {
  return Axios({
    url: `/api/putPtBanner/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//查找指定轮播图
export function zht_searchPtBanner(id) {
  return Axios({
    url: `/api/searchPtBanner/${id}`,
    method: 'GET',
  })
}

//获取积分商品数据
export function zht_getJfGoodsList() {
  return Axios({
    url: '/api/getJfGoodsLists',
    method: 'GET',
  })
}
//添加积分商品数据
export function zht_addJfGoods(data) {
  return Axios({
    url: '/api/addJfGoods',
    method: 'POST',
    data: data,
  })
}
//删除指定商品
export function zht_delJfGoods(id) {
  return Axios({
    url: `/api/delJfGoods/${id}`,
    method: 'DELETE',
  })
}
//查找指定积分商品
export function zht_searchJfGoods(id) {
  return Axios({
    url: `/api/searchJfGoods/${id}`,
    method: 'GET',
  })
}

//修改指定商品
export function zht_putJfGoods(data) {
  return Axios({
    url: `/api/putJfGoods/${data.id}`,
    method: 'PUT',
    data: data,
  })
}
//获取积分轮播数据
export function zht_JfBannerList() {
  return Axios({
    url: '/api/getJfBanner',
    method: 'GET',
  })
}
//添加积分轮播
export function zht_addJfBanner(data) {
  return Axios({
    url: '/api/addJfBanner',
    method: 'POST',
    data: data,
  })
}
//删除积分轮播
export function zht_delJfBanner(id) {
  return Axios({
    url: `/api/delJfBanner/${id}`,
    method: 'DELETE',
  })
}
//查找指定轮播
export function zht_searchJfBanner(id) {
  return Axios({
    url: `/api/searchJfBanner/${id}`,
    method: 'GET',
  })
}
//更新指定轮播
export function zht_putJfBanner(data) {
  return Axios({
    url: `/api/putJfBanner/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

//获取积分 商品分类数据
export function zht_getJfGoodClass() {
  return Axios({
    url: '/api/getJfGoodClass',
    method: 'GET',
  })
}
//添加 积分 商品份额里
export function zht_addJfGoodClass(data) {
  return Axios({
    url: '/api/addJfGoodClass',
    method: 'post',
    data: data,
  })
}
// 查找指定分类
export function zht_searchJfGoodClass(id) {
  return Axios({
    url: `/api/searchJFGoodClass/${id}`,
    method: 'get',
  })
}
//修改指定分类
export function zht_putJfGoodClass(data) {
  return Axios({
    url: `/api/putJfGoodClass/${data.id}`,
    method: 'put',
    data: data,
  })
}
//删除指定分类
export function zht_delJfGoodClass(id) {
  return Axios({
    url: `/api/delJfGoodClass/${id}`,
    method: 'DELETE',
  })
}

//获取订单相应数据
export function zht_getJfGoodState() {
  return Axios({
    url: '/api/getJfGoodState',
    method: 'GET',
  })
}

export function zht_searchGoodState(id) {
  return Axios({
    url: `/api/searchJfGoodState/${id}`,
    method: 'GET',
  })
}
//更新
export function zht_putJfGoodState(data) {
  return Axios({
    url: `/api/putJfGoodsState/${data.id}`,
    method: 'PUT',
    data: data,
  })
}

//获取全部商品
export function zht_getGoodsAll() {
  return Axios({
    url: '/api/getGoodsAll',
    method: 'GET',
  })
}

export function getshang() {
  return Axios({
    url: '/api/getshang',
    method: 'GET',
  })
}

export function delshang(id) {
  return Axios({
    url: `/api/delshang/${id}`,
    method: 'DELETE',
  })
}

export function addshang(data) {
  return Axios({
    url: '/api/addshang',
    method: 'POST',
    data: data,
  })
}
export function upshang(data) {
  return Axios({
    url: `/api/upshang/${data.id}`,
    method: 'put',
    data: data,
  })
}
